<?php
defined('BASEPATH') OR exit('No direct script access allowed');

class Item extends CI_Controller {


	public function __construct()
	{
	  	parent::__construct();
	  	$this->load->model('attribute_model','attribute');    // 加载产品属性模型

	}
	
	public function one()
	{
		
		$arr = $this->attribute->get_attr(1);
		$this->load->view('home/item/one',compact("arr"));

	}

	public function two()
	{
		$arr = $this->attribute->get_attr(2);
		$this->load->view('home/item/two',compact("arr"));
	}


	public function there()
	{
		$this->load->view('home/item/there');
	}


	public function cartone(){
		die('ok');
	}
}
